﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Repository;
using WZVTC.SoftDev.DDDFW.Domain.Core;
using WZVTC.SoftDev.DDDFW.EntityServices;
using WZVTC.SoftDev.DDDFW.Domain.Specification;
using Model;

namespace EntityServices
{
    public  class 课程Service : BaseServices<课程>
    {
        public 课程Service(IUnitOfWork _context, 课程Repository _Repository)
            : base(_context, _Repository)
        {
        
        }

        public 课程 GetById(int id)
        {
            ISpecification<课程> sp = new DirectSpecification<课程>(x => x.Id == id);
            return base.GetByCondition(sp);
        }

    }
}
